-
Notifications
You must be signed in to change notification settings - Fork 256
[0.9.1][Feature]Moe alltoallv communication optimization for unquantized RL training sence & alltoallv support dpo #1547
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.9.1][Feature]Moe alltoallv communication optimization for unquantized RL training sence & alltoallv support dpo #1547
Conversation
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
…training sence & alltoallv support dpo Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: duyangkai <duyangkai@huawei.com>
# at different points based on MoE settings as late as possible. | ||
# Valid sync points are "before_permutation_1", "before_ep_alltoall", | ||
# "before_finish", and "no_sync". | ||
self.cuda_sync_point = "no_sync" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use this naming, seems little bit unsuitable in vllm-ascend
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cuda_sync_point
is already renamed to device_sync_point
Signed-off-by: duyangkai <duyangkai@huawei.com>
… into v0.9.1-dev # Conflicts: # tests/ut/test_distributed_tensor_parallel.py # tests/ut/test_moe_util.py # tests/ut/test_token_dispatcher.py # vllm_ascend/ascend_forward_context.py # vllm_ascend/envs.py # vllm_ascend/models/moe_block.py # vllm_ascend/models/qwen3_dbo.py # vllm_ascend/ops/fused_moe.py # vllm_ascend/ops/moe_dispatcher/token_dispatcher.py
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: weijinqian_v1 <weijinqian@huawei.com>
Signed-off-by: duyangkai <duyangkai@huawei.com>
[Feature]Moe alltoallv communication optimization for unquantized RL training sence & alltoallv support dpo
Introduction
This PR introduces two key optimizations for MoE model performance:
Efficient Token Dispatcher:
alltoallv_seq
token dispatcher (adopted from NVIDIA Megatron and Ascend MindSpeed)VLLM_ASCEND_ENABLE_MOE_ALL2ALL_SEQ=1
DBO Support for alltoallv_seq:
alltoallv_seq
dispatcher to support DBO (Dual Batch Overlap)VLLM_ASCEND_ENABLE_MOE_ALL2ALL_SEQ=1
VLLM_ASCEND_ENABLE_DBO=1
Performance Improvements
Testing on Qwen3-30B-A3B shows nearly 2x throughput improvement compared to the original alltoall implementation.